﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000229 RID: 553
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueEnterCsReq : IMessage<ChessRogueEnterCsReq>, IMessage, IEquatable<ChessRogueEnterCsReq>, IDeepCloneable<ChessRogueEnterCsReq>, IBufferMessage
	{
		// Token: 0x1700073C RID: 1852
		// (get) Token: 0x060018C0 RID: 6336 RVA: 0x00046ADC File Offset: 0x00044CDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueEnterCsReq> Parser
		{
			get
			{
				return ChessRogueEnterCsReq._parser;
			}
		}

		// Token: 0x1700073D RID: 1853
		// (get) Token: 0x060018C1 RID: 6337 RVA: 0x00046AE3 File Offset: 0x00044CE3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueEnterCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700073E RID: 1854
		// (get) Token: 0x060018C2 RID: 6338 RVA: 0x00046AF5 File Offset: 0x00044CF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueEnterCsReq.Descriptor;
			}
		}

		// Token: 0x060018C3 RID: 6339 RVA: 0x00046AFC File Offset: 0x00044CFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueEnterCsReq()
		{
		}

		// Token: 0x060018C4 RID: 6340 RVA: 0x00046B04 File Offset: 0x00044D04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueEnterCsReq(ChessRogueEnterCsReq other) : this()
		{
			this.id_ = other.id_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060018C5 RID: 6341 RVA: 0x00046B29 File Offset: 0x00044D29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueEnterCsReq Clone()
		{
			return new ChessRogueEnterCsReq(this);
		}

		// Token: 0x1700073F RID: 1855
		// (get) Token: 0x060018C6 RID: 6342 RVA: 0x00046B31 File Offset: 0x00044D31
		// (set) Token: 0x060018C7 RID: 6343 RVA: 0x00046B39 File Offset: 0x00044D39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x060018C8 RID: 6344 RVA: 0x00046B42 File Offset: 0x00044D42
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueEnterCsReq);
		}

		// Token: 0x060018C9 RID: 6345 RVA: 0x00046B50 File Offset: 0x00044D50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueEnterCsReq other)
		{
			return other != null && (other == this || (this.Id == other.Id && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060018CA RID: 6346 RVA: 0x00046B80 File Offset: 0x00044D80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060018CB RID: 6347 RVA: 0x00046BBF File Offset: 0x00044DBF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060018CC RID: 6348 RVA: 0x00046BC7 File Offset: 0x00044DC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060018CD RID: 6349 RVA: 0x00046BD0 File Offset: 0x00044DD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Id != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Id);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060018CE RID: 6350 RVA: 0x00046C04 File Offset: 0x00044E04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060018CF RID: 6351 RVA: 0x00046C42 File Offset: 0x00044E42
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueEnterCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060018D0 RID: 6352 RVA: 0x00046C73 File Offset: 0x00044E73
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060018D1 RID: 6353 RVA: 0x00046C7C File Offset: 0x00044E7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Id = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000A54 RID: 2644
		private static readonly MessageParser<ChessRogueEnterCsReq> _parser = new MessageParser<ChessRogueEnterCsReq>(() => new ChessRogueEnterCsReq());

		// Token: 0x04000A55 RID: 2645
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000A56 RID: 2646
		public const int IdFieldNumber = 1;

		// Token: 0x04000A57 RID: 2647
		private uint id_;
	}
}
